#!/bin/bash

# 将上面文本中的 Depends: 行提取出来，并删除冒号后的空格
depends_line=$(echo "Depends: libc6 (>= 2.29), libgcc-s1 (>= 3.0), libgsettings-qt1 (>= 0.1+14.04.20140408), libkysdk-qtwidgets (>= 2.0.2.1), libkysdk-waylandhelper (>= 1.2.0.3), libmpv1 (>= 0.4.0), libqt5core5a (>= 5.12.2), libqt5dbus5 (>= 5.0.2), libqt5gui5 (>= 5.8.0) | libqt5gui5-gles (>= 5.8.0), libqt5multimedia5 (>= 5.6.0~beta), libqt5network5 (>= 5.0.2), libqt5sql5 (>= 5.0.2), libqt5widgets5 (>= 5.11.0~rc1), libqt5x11extras5 (>= 5.6.0), libstdc++6 (>= 5.2), libukui-log4qt1 (>= 1.0.1.11), libx11-6" | sed 's/Depends: //')

# 使用逗号分隔提取的字符串，并遍历输出
IFS=',' read -r -a depends_array <<< "$depends_line"
#echo ${depends_array[$1]}
for item in "${depends_array[@]}"; do
    echo "$item"
done
